package com.flot.yazb.home.moudle.message.control;



import com.flot.yazb.base.host.HostAnoy;
import com.flot.yazb.base.host.HostApi;
import com.flot.yazb.aop.stub.RMResponse;
import com.flot.yazb.home.moudle.message.model.MessageEntityModel;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

@HostAnoy.NameSpace(HostApi.TLSVC_HOST)
public interface MsgApi {

    @GET("api")
    Call<RMResponse<MessageEntityModel>> getTuringInfo(@Query("key") String key, @Query("info") String info);
    Call<MessageEntityModel> getTuringInfo2(@Query("key") String key, @Query("info") String info);

    @GET("api")
    Observable<MessageEntityModel> getTuringInfoByRxJava(@Query("key") String key, @Query("info") String info);

}
